package ccmouse.guice.v9.helloworlddemo;

import ccmouse.guice.v9.MyAppletV3;

import java.io.PrintStream;

public class HelloWorldPrinterV7 implements MyAppletV3 {

    private PrintStream destination;

    public HelloWorldPrinterV7(PrintStream destination) {
        this.destination = destination;
    }

    private void printHelloWorld() {
        destination.println("Hello World!");
    }

    @Override
    public void run() {
        printHelloWorld();
    }
}
